package agency.tango.materialintroscreen.animations.translations;

import ohos.agp.components.Component;

import agency.tango.materialintroscreen.animations.IViewTranslation;

/**
 * @ProjectName: material-intro-screen-master
 * @Package: agency.tango.materialintroscreen.animations.translations
 * @ClassName: DefaultAlphaTranslation
 * @Description: pageslider随着滑动alpha动态改变实现类（默认的 alpha不变 恒为1）

 * @CreateDate: 2021/4/12 15:43

 * @UpdateDate: 2021/4/12 15:43
 * @UpdateRemark: 暂无
 * @Version: 1.0
 */
public class DefaultAlphaTranslation implements IViewTranslation {
    @Override
    public void translate(Component view, float percentage) {
        view.setAlpha(1f);
    }
}
